From 4da493402d0b97af7989017676e4d406a26cbae0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 30 Dec 2011 13:13:44 +0100 Subject: [PATCH] css: 'none' is not a value background-repeat --- gtk/gtkcsstypesprivate.h | 1 - gtk/gtkthemingbackground.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h index ff1a844f2d..23ad3db553 100644 --- a/gtk/gtkcsstypesprivate.h +++ b/gtk/gtkcsstypesprivate.h @@ -31,7 +31,6 @@ typedef enum { } GtkCssSpecialValue; typedef enum { - GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE, GTK_CSS_BACKGROUND_REPEAT_STYLE_REPEAT, GTK_CSS_BACKGROUND_REPEAT_STYLE_NO_REPEAT, } GtkCssBackgroundRepeatStyle; diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c index a525e18556..dda56e418f 100644 --- a/gtk/gtkthemingbackground.c +++ b/gtk/gtkthemingbackground.c @@ -307,8 +307,7 @@ _gtk_theming_background_paint (GtkThemingBackground *bg, if (cairo_pattern_get_surface (bg->pattern, &surface) != CAIRO_STATUS_SUCCESS) surface = NULL; - if (surface && repeat && - repeat->repeat != GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE) + if (surface && repeat) { scale_width = cairo_image_surface_get_width (surface); scale_height = cairo_image_surface_get_height (surface); -- 2.30.2